package com.memorypalace.pojo;

import java.util.List;

public class Deck {
	private String deckId;
	private String userId;
	private String goodsId;
	private String deckName;
	
	private List<Note> noteList;
	
	
	public Deck(){}
	public Deck(String deckId, String userId,String goodsId, String deckName) {
		super();
		this.deckId = deckId;
		this.userId = userId;
		this.goodsId = goodsId;
		this.deckName = deckName;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((deckId == null) ? 0 : deckId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Deck other = (Deck) obj;
		if (deckId == null) {
			if (other.deckId != null)
				return false;
		} else if (!deckId.equals(other.deckId))
			return false;
		return true;
	}
	public String getDeckId() {
		return deckId;
	}
	public void setDeckId(String deckId) {
		this.deckId = deckId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public String getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}
	public String getDeckName() {
		return deckName;
	}
	public void setDeckName(String deckName) {
		this.deckName = deckName;
	}
	public List<Note> getNoteList() {
		return noteList;
	}
	public void setNoteList(List<Note> noteList) {
		this.noteList = noteList;
	}
	
	@Override
	public String toString() {
		return "Deck [deckId=" + deckId + ", userId=" + userId + ", goodsId=" + goodsId + ", deckName=" + deckName
				+ ", noteList=" + noteList + "]";
	}
	
	

}
